import { RouteRecordRaw } from 'vue-router'
import { Layout } from '@/utils/routerHelper'

const energyRoutes: RouteRecordRaw[] = [
  {
    path: '/energy',
    name: 'Energy',
    component: Layout,
    redirect: '/energy/device',
    meta: {
      title: '能耗管理',
      icon: 'ep:lightning',
      orderNo: 3100
    },
    children: [
      {
        path: 'device',
        name: 'EnergyDevice',
        component: () => import('@/views/energy/device/index.vue'),
        meta: {
          title: '能耗设备',
          icon: 'ep:cpu',
          permission: ['energy:device:query']
        }
      }
    ]
  }
]

export default energyRoutes
